package com.xxy.crm.controller;

import com.xxy.crm.base.BaseController;
import com.xxy.crm.query.CustomerOrderDetailQuery;
import com.xxy.crm.service.CustomerOrderDetailsService;
import com.xxy.crm.service.CustomerOrderService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

@Controller
@RequestMapping("order_details")
public class CustomerOrderDetailsController extends BaseController {
    @Resource
    private CustomerOrderDetailsService customerOrderDetailsService;

    /**
     * 订单详情分页显示
     * @param customerOrderDetailQuery
     * @return
     */
    @RequestMapping("list")
    @ResponseBody
    public Map<String,Object> queryCustomerOrderDetail(CustomerOrderDetailQuery customerOrderDetailQuery){
        return customerOrderDetailsService.queryCustomerOrderDetail(customerOrderDetailQuery);
    }


}
